<include file="common/hearder"/>
<div class="container">
    <div class="row">
        <div class="col-lg-6">
            <br><h3>修改岗位信息</h3><br>
            <form method="post">
                <div class="form-group">
                    <label for="exampleInputEmail1">岗位名称</label>
                    <input type="text" class="form-control" name="pt_name" id="exampleInputEmail1" value="{$ptlist.pt_name}">
                </div>
                <div class="form-group">
                    <label>所属部门</label>
                    <select class="form-control" name="dpt_id">
                        <?php foreach($dept as $dpt){ ?>
                        <option value="<?php echo $dpt['dpt_id']?>" <?php if($ptlist['dpt_id'] == $dpt['dpt_id']):?> selected <?php endif;?>><?php echo $dpt['dpt_name']?></option>
                        <?php }?>
                    </select>
                </div>
                <div class="form-group">
                    <label>岗位职能</label>
                    <input type="text" class="form-control" name="pt_function" value="{$ptlist.pt_function}">
                </div>
                <div class="form-group">
                    <label>岗位工资</label>
                    <input type="text" class="form-control"  value="{$ptlist.wages}">
                </div>
                <input type="hidden" value="1" name="submit">
                <input type="hidden" value="{$ptlist.pt_id}" name="pt_id">
                <button type="submit" class="btn btn-info">修改</button>
                <a href="{:U('index')}" class="btn btn-default">返回上一页</a>
            </form>
        </div>
    </div>
</div>
<include file="common/footer"/>